package com.ctbu.tourism.controller.restful;

import com.ctbu.tourism.entity.Result;
import com.ctbu.tourism.service.GradeService;
import com.ctbu.tourism.utils.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GradeController {

    @Autowired
    GradeService gradeService;

    @GetMapping("/user/post/total/num")
    Result getUserCanPostNums(@RequestParam("uid") Integer uid){
        return ResultUtil.success(gradeService.getUserCanPostNums(uid));
    }
}
